@extends('linfeng.writer.book')
@section('main')

            <div class="col-md-12">
                <div class="fromadd">
                <form class="form-horizontal" action="{{url('linfeng/writer/book/upadd')}}" method="post" enctype="multipart/form-data">
                    {{csrf_field()}}
                    <div class="form-group form-group-lg">
                        <label class="col-sm-2 control-label" for="formGroupInputLarge">作品名</label>
                        <div class="col-xs-3">
                            <input class="form-control" type="text" id="formGroupInputLarge" name="bookname">
                        </div>
                    </div>

                    <div class="form-group form-group-sm">
                        <label class="col-sm-2 control-label" for="formGroupInputSmall">作品类型</label>
                        <div class="col-xs-3">
                            <select class="form-control input-lg" name="type">
                                <option value="">请选择</option>
                                <option value="1">科幻</option>
                                <option value="2">玄幻</option>
                                <option value="3">都市</option>
                                <option value="4">军事</option>
                                <option value="5">末日</option>
                                <option value="6">武侠</option>
                                <option value="7">爱情</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group form-group-sm">
                        <label class="col-sm-2 control-label" for="formGroupInputSmall">章节价格</label>
                        <div class="col-xs-3">
                            <input class="form-control" type="text" name="price">
                        </div>
                    </div>

                    <div class="form-group form-group-sm">
                        <label class="col-sm-2 control-label" for="formGroupInputSmall">免费章节</label>
                        <div class="col-xs-3">
                            <input class="form-control" type="text"  placeholder="选题:不填默认没有免费章节" name="free">
                        </div>
                    </div>

                    <div class="form-group form-group-sm">
                        <label class="col-sm-2 control-label" for="formGroupInputSmall">作品简介</label>
                        <div class="col-xs-5">
                            <textarea class="form-control" rows="3" name="desc"></textarea>
                        </div>
                    </div>

                    <div class="form-group form-group-sm">
                        <label class="col-sm-2 control-label" for="formGroupInputSmall">上传封面</label>
                        <div class="col-xs-5">
                                <input type="file" name="bookicon" id="">
                        </div>
                    </div>

                    {{--这个是默认加上的作者--}}
                    <div class="form-group form-group-sm">
                        <label class="col-sm-2 control-label" for="formGroupInputSmall">默认的作者</label>
                        <div class="col-xs-5">
                            <input type="text" class="form-control" value="三毛" name="writername">
                            <input type="hidden" name="wid" value="1">
                        </div>
                    </div>

                    <div class="form-group form-group-sm">
                        <label class="col-sm-2 control-label" for="formGroupInputSmall"></label>
                        <div class="col-xs-5">
                            <input type="submit" class="btn btn-success" value="创建作品">
                        </div>
                    </div>



                </form>
            </div>
    </div>
    @endsection